<template>
    <!-- 轮播图的组件，谁要使用该组件就要传递 谁的数组 -->
    <mt-swipe :auto="5000">
        <mt-swipe-item v-for="item in list" :key="item.url">
            <img :class="{'fullWidth' : fullWidth}" :src="item.imgUrl" alt="">
        </mt-swipe-item>
    </mt-swipe>
</template>

<script>
    export default {
        props : ['list','fullWidth']
    }
</script>

<style lang="scss" scoped>
    .mint-swipe {
        height: 210px;


        img {
            height: 100%;
        }
    }

    .fullWidth{
        width: 100%;
    }
</style>